package com.fhy.file_upload.service;

import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;

import java.nio.file.Path;
import java.util.stream.Stream;

/**
 * 用于操作上传文件的接口类
 */
public interface FileStorageService {
    void init();
    void save(MultipartFile multipartFile);
    Resource load(String filename);
    Stream<Path> load();
    void clear();
}
